/*
 * EscritorBuffer.java
 *
 * Created on 16 de Julho de 2006, 13:35
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package negocio;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author Gustavo F. Carvalho
 */
public class EscritorBuffer {
    
    /** Creates a new instance of EscritorBuffer */
    public EscritorBuffer() {
    }
    
    public static void escreve(File arquivo, String texto) {
        try {
                FileWriter writer = new FileWriter(arquivo);
                BufferedWriter bufWriter = new BufferedWriter(writer);
                bufWriter.write(texto);
                bufWriter.close();
                writer.close();
        } catch (IOException e) {
                e.printStackTrace();
        }
    }
}
